package com.dzj.springcloud.controller;/*
 * @date:2021/8/17 15:10
 * @author: dzj
 **/

import com.dzj.springcloud.service.IMessageProvider;
import com.rabbitmq.client.MessageProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider provider;
    @GetMapping("/sendMessage")
    public String sendMessage(){
        return provider.send();
    }
}
